import request from "@/utils/pyRequest"
import upload from "@/utils/pyUpload.js"

// 聊天消息
export function getChatInfo(data) {
  return request({
    'url': '/api/chat',
    'method': 'post',
	data: data
  })
}


// 初始化聊天消息
export function getInitChatInfo() {
  return request({
    'url': '/api/init/chat',
    'method': 'post',
  })
}

// 上传附件
export function uploadFile(data) {
  return upload({
    url: '/api/upload',
    name: data.name,
    filePath: data.filePath
  })
}
